<template>
	<view class="content" :style="{background:$store.state.bgPrimaryColor}">
		<view class="Box">
			<view class="BoxView">
				<view class="BoxOne">
					<u--image :showLoading="true" :src="info.avatar" width="160rpx" height="160rpx" radius="0"
						shape="circle"></u--image>
					<view class="BoxContent">
						<view class="BoxTop marginBottom">
							<text class="title">{{info.name}}</text>
							<text style="color:#888888;margin-left:15rpx;">{{info.country.name}}教师</text>
						</view>
						<view class="BoxTop marginBottom">
							<u-rate :count="1" size="20" gutter="20" :activeColor="$store.state.primaryColor"
								readonly></u-rate>
							<text class="fen"  :style="{color:$store.state.primaryColor}">{{(info.avg_comment_score).toFixed(1)}}</text>
						</view>
						<view class="BoxTop">
							<text class="Newtitle">{{info.speciality}}</text>
						</view>
					</view>
				</view>
				<u--image :showLoading="true" src="../../static/Home/heiaixin.png" width="32rpx" height="32rpx"
					radius="0" v-if="info.is_collect == 0" @click="collectTeacher(info.id,1)"></u--image>
				<image src="../../static/static/dianzan_huangse.png" style="width:32rpx;height:30rpx;" v-else
					@click="collectTeacher(info.id,0)"></image>
				<!-- <u--image :showLoading="true" src="../../static/static/dianzan_huangse.png" width="32rpx" height="32rpx"
					radius="0" v-else @click="collectTeacher(info.id,0)"></u--image> -->
			</view>
		</view>
		<!-- <view class="message_Flex">
			<view class="view" style="width: 80%">
				<u--image :showLoading="true" src="../../static/Home/gb.png" width="46rpx" height="48rpx"></u--image>
				<view style="width: 100%">
					<swiper circular :vertical="true" style="height: 50rpx; width: 100%; line-height: 50rpx"
						:autoplay="true" :interval="2000">
						<swiper-item style="width: 100%; padding-left: 10rpx">
							温馨提示：固定课程每周只能请一次假，请假需提前12小时～
						</swiper-item>
					</swiper>
				</view>
			</view>
			<view class="view">
				<view class="yuan"></view>
				<u--image :showLoading="true" src="../../static/more.png" width="28rpx" height="28rpx"></u--image>
			</view>
		</view> -->
		<view class="headers_title" style="margin-top:30rpx;">
			<view class="view" :style="{backgroundColor:$store.state.primaryColor}"></view>
			<text>关于老师</text>
		</view>
		<view class="scrollBody">
			<text>{{info.description}}</text>
		</view>
		<view class="headers_title">
			<view class="view" :style="{backgroundColor:$store.state.primaryColor}"></view>
			<text>{{title == 'switch' ? '固定课程' : '工作时间'}}</text>
		</view>
		<view class="working_hours">
			<view class="view">
				<u--image :showLoading="true" src="../../static/Home/rqi.png" width="34rpx" height="34rpx"
					radius="0"></u--image>
				<text>{{title == 'switch' ? '固定课周期默认为四周' : '周一至周六'}}</text>
			</view>
			<view class="view">
				<u--image :showLoading="true" src="../../static/Home/shijian.png" width="34rpx" height="34rpx"
					radius="0"></u--image>
				<text>25分钟/节</text>
			</view>
		</view>
		<view class="headers_title">
			<view class="view" :style="{backgroundColor:$store.state.primaryColor}"></view>
			<text>预约时间</text>
		</view>
		<view class="headers">
			<scroll-view :scroll-top="scrollTop" :scroll-x="true" class="view" v-for="(item,i) in dateArray" :key="i">
				<view>
					<text class="week"
						:style="{color:item.is_check ? $store.state.primaryColor : '#333'}">{{ item.week }}</text>
					<text :class="[item.is_check ? 'sun1' : 'sun']" @click="getDay(item,i)"
						:style="{color:item.is_check ? $store.state.primaryColor : '#333'}">{{ item.day }}</text>
					<text :style="{backgroundColor:item.is_check ? $store.state.primaryColor : 'transparent'}"
						class="borderBottom"></text>
				</view>
			</scroll-view>
		</view>
		<view class="text_flex" v-if="title == 'switch'">
			<u--image :showLoading="true" src="../../static/Home/rqi.png" width="34rpx" height="34rpx"
				radius="0"></u--image>
			<text>温馨提示：请先选择每周固定课程数，在进行约课。</text>
		</view>
		<view class="button_flex">
			<view v-for="(item,index) in info.times" :key="index">
				<button @click="chooseTime(item.time,index)" type="default" :style="xuanz==index?auu:''"
					:class="xuanz==index?'hhhh':'heihei'" v-if="item.is_setting==0">{{item.time}}</button>
				<button :style="{backgroundColor:'#eaeaea',color:'#000'}" v-else>{{item.time}}</button>
			</view>
		</view>
		<view class="statusType">
			<view class="leftview">
				<view :style="{backgroundColor:$store.state.primaryColor}"></view>
				<text>可预约</text>
			</view>
			<view class="rightview">
				<view></view>
				<text>不可预约</text>
			</view>
		</view>
		<view style="height:50px">
		</view>
		<!-- 		<button class="Single_appointment" 
			:style="{'background':$store.state.buttonColor}">单次预约</button> -->
		<u-popup :show="show" @close="show = false" @open="show = true" mode="center" round="20">
			<view class="NewpopupBody">
				<text class="title">请先完成答题再约课</text>
				<view class="but_flex">
					<button class="leftButton" :style="{'background':$store.state.buttonColor}"
						@click="qxiao">取消</button>
					<button class="rightButton" :style="{'background':$store.state.buttonColor}"
						@click="qding">确认</button>
				</view>
			</view>
		</u-popup>
		<u-popup :show="kcIsShow" @close="kcIsShow = false" @open="kcIsShow = true" mode="center" round="20">
			<view class="NewpopupBody">
				<text class="title">提示</text>
				<text class="content_text">是否确定预约该课程？</text>
				<view class="but_flex">
					<button class="leftButton" @click="kcIsShow = false">取消</button>
					<button class="rightButton" :style="{ background: $store.state.buttonColor }"
						@click="confirm">确认</button>
				</view>
			</view>
		</u-popup>
		<u-popup :show="IsVip" @close="IsVip = false" @open="IsVip = true" mode="center" round="20">
			<view class="NewpopupBody">
				<text class="title">请先购卡再约课</text>
				<text class="content_text"></text>
				<view class="but_flex">
					<button class="rightButton" :style="{'background':$store.state.buttonColor}"
						@click="qxiaoNew">确认</button>
				</view>
			</view>
		</u-popup>
	</view>
</template>
<script>
	import {
		teacherLists,
		collectTeacher,
		teacher_category,
		teacherCountry,
		teacher_info,
		getJsSdk
	} from '../../api/Teacher.js';
	import {
		courseOneAdd,
	} from '../../api/Course.js';
	import {
		userinfo
	} from '../../api/Mine.js';
	import jWeixin from '../../js_sdk/jweixin-module';
	import moment from 'moment';
	export default {
		data() {
			return {
				choose_index: 0,
				dateArray: [],
				scrollTop: 0,
				courses: [{
					name: '全部',
					id: 0
				}],
				info: {},
				xuanz: -1,
				time: '',
				auu: '',
				req: {
					teacher_id: 0,
					shop_id: 0,
					user_vip_id: 0,
					text_box_id: 0,
					date: '',
					start_time: '',
				},
				type: '', // == 1v1 1v1固定预约 == '' 单次预约
				title: '',
				addinfo: [],
				show: false,
				auuarr: "",
				kcIsShow: false,
				isDisabled: true,
				IsVip: false
			}
		},
		onUnload() {
			console.log(3323222)
			uni.$off('jiaocai');
			uni.$off('changeInvoiceClose');
		},
		onLoad(option) {
			this.userinfo();
			this.share();
			console.log(option)
			if (option.hasOwnProperty('vip_type')) this.type = option.vip_type;
			if (option.hasOwnProperty('title')) this.title = option.title;
			this.req.teacher_id = option.id
			this.req.shop_id = uni.getStorageSync('shop_id') || 1;
			this.teacherLists();
			this.teacher_category();
			this.setDate();
			this.teacher_info(option.id, this.req.date);
		},
		onShow() {
			uni.$off('jiaocai');
			uni.$off('changeInvoiceClose');
			console.log('jiaoci:' + this.req.text_box_id)
			uni.$on('changeInvoiceClose', (data) => {
				this.req.user_vip_id = data.id
				this.req.start_time = data.start_time
				uni.showLoading({
					title: "加载中"
				});
				if (this.req.text_box_id == 0) {
					setTimeout(() => {
						uni.hideLoading()
						uni.navigateTo({
							url: '/pages/Mine/Tutorial_courses?dianji=' + 1 + '&teacher_id=' + this
								.req.teacher_id + '&type=' + this.type
						})
					}, 500)
				}
			})
			uni.$on('jiaocai', (data) => {
				console.log(111)
				console.log(data)
				this.req.text_box_id = data.id
				this.kcIsShow = true
			})
		},
		methods: {
			/**
						@method 分享
						**/
			async share() {
				try {
					var th_is = this;
					const res = await getJsSdk({
						url: '/pages/Scheduleaclass/Singleappointment'
					});
					jWeixin.config({
						debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
						appId: res.data["appId"], // 必填，公众号的唯一标识
						timestamp: res.data["timestamp"], // 必填，生成签名的时间戳
						nonceStr: res.data["nonceStr"], // 必填，生成签名的随机串
						signature: res.data["signature"], // 必填，签名
						jsApiList: ["updateAppMessageShareData", "updateTimelineShareData"] // 必填，需要使用的JS接口列表
					});
					jWeixin.ready(function() {
						// 分享给朋友
						jWeixin.updateAppMessageShareData({
							title: "约课", // 分享标题
							desc: "邀请您参加预约课程", // 分享描述
							link: window.location.href, // 分享链接
							imgUrl: th_is.info.avatar, // 分享图标
							type: 'link', // 分享类型,music、video或link，不填默认为link
							success: function() {
								// 分享成功回调
							}
						});
						// 分享到朋友圈
						jWeixin.updateTimelineShareData({
							title: "约课", // 分享标题
							desc: "邀请您参加预约课程", // 分享描述
							link: window.location.href, // 分享链接
							imgUrl: '', // 分享图标
							success: function() {
								// 分享成功回调
							}
						});
					});
				} catch (err) {
					//TODO handle the exception
					console.log(err);
				}
			},
			qding() {
				this.show = false
				uni.reLaunch({
					url: '/pages/Questionnaire/Test_questionnaire?title=' + this.auuarr
				})
			},
			qxiao() {
				this.show = false
				uni.switchTab({
					url: '/pages/Tabbar/Home/Home'
				})
			},
			qxiaoNew() {
				this.IsVip = false
				uni.switchTab({
					url: '/pages/Tabbar/Home/Home'
				})
			},
			/**
				@method 老师详情
				**/
			async userinfo() {
				try {
					const res = await userinfo({
						shop_id: uni.getStorageSync('shop_id') || 1
					});
					this.addinfo = res.data.userinfo;
					if (this.addinfo.level_id > 1 && this.addinfo.is_answer == 0) {
						this.show = true
					}
					if (this.addinfo.student_type_id == 3) {
						this.auuarr = '成人'
					} else {
						this.auuarr = '孩童'
					}
					if (this.addinfo.vip_num == 0) {
						this.IsVip = true
					}
				} catch (err) {
					//TODO handle the exception
					console.log(err);
				}
			},
			/**
			@method 点赞
			**/
			async collectTeacher(item, type) {
				try {
					const res = await collectTeacher({
						teacher_id: item || '',
						type: type, //0取消收藏 1收藏
					});
					this.teacher_info(this.req.teacher_id, this.req.date)
					uni.showToast({
						title: type == 0 ? '取消收藏成功' : '已收藏',
						icon: 'none',
						duration: 2000
					});
				} catch (err) {
					//TODO handle the exception
					console.log(err);
				}
			},
			generateDateArray() {
				const weekDays = ['日', '一', '二', '三', '四', '五', '六'];
				const startDate = moment(); // 今天的日期
				const endDate = moment().add(6, 'months'); // 半年后的日期
				const dateArray = [];
				let currentDate = startDate;
				let i = 0;
				while ((currentDate.isBefore(endDate) || currentDate.isSame(endDate, 'day')) && i < 10) {
					if (this.isSameWeek(currentDate)) {
						dateArray.push({
							day: currentDate.date(),
							week: weekDays[currentDate.day()],
							date: currentDate.year() + '-' + (currentDate.month() + Number(1)) + '-' + currentDate
								.date(),
							is_check: 0
						});
					}
					currentDate = currentDate.add(1, 'day'); // 增加一天
					i++;
				}
				dateArray[0].is_check = 1;
				this.dateArray = dateArray;
				console.log(this.dateArray, '')
			},
			isSameWeek(day) {
				let sameWeek = false;
				let time = new Date();
				let ye = time.getFullYear();
				let mo = time.getMonth() + 1;
				let da = time.getDate();
				let week = time.getDay();
				let beforeWeek = new Date(day.format('YYYY/MM/DD HH:mm:ss')).getTime();
				console.log(1111111111111);
				console.log(day.format('YYYY/MM/DD HH:mm:ss'));
				var d = new Date();
				d.setDate(d.getDate() + (((1 + 7 - d.getDay()) % 7) || 7));
				d.setHours(0);
				d.setMinutes(0);
				d.setSeconds(0);
				console.log(2222);
				console.log(d.getTime());
				let nextWeek = d.getTime();
				beforeWeek < nextWeek ? sameWeek = true : sameWeek = false;
				return sameWeek;
			},
			chooseTime(e, z) {
				this.auu = 'color:#2383FF'
				this.xuanz = z
				this.req.text_box_id = 0;
				uni.navigateTo({
					url: '/pages/Mine/MyVip?start_time=' + e + '&vip_type=' + this.type
				})
				this.req.start_time = e
			},
			setDate() {
				var now = new Date();
				var year = now.getFullYear();
				var month = now.getMonth() + 1; // 注意：月份从0开始，需要加1
				var day = now.getDate();
				this.req.date = year + '-' + month + '-' + day;
			},
			getDay(item, i) {
				this.dateArray[this.choose_index].is_check = 0;
				this.dateArray[i].is_check = 1;
				this.choose_index = i;
				this.req.date = item.date
				this.teacher_info(this.req.teacher_id, this.req.date)
				console.log(item);
			},
			/**
			@method 学习语种u-picker确认
			**/
			confirm() {
				if (!this.isDisabled) return
				if (this.req.start_time == '') {
					uni.showToast({
						title: '请选择预约时间',
						icon: 'none',
						duration: 2000
					});
				}
				try {
					console.log(this.type);
					if (this.type == '1v1') {
						const _this = this;
						uni.showModal({
							title: '提示',
							content: '是否确定预约该课程？',
							success: function(res) {
								if (res.confirm) {
									_this.req = {
										..._this.req,
										...{
											type: 2
										}
									};
									_this.courseOneAdd(_this.req);
								}
							}
						})
					} else {
						this.courseOneAdd(this.req);
					}
					this.kcIsShow = false
				} catch (err) {
					//TODO handle the exception
					console.log(err);
				}
			},
			/**
			@method 来自国家u-picker确认
			**/
			teacherCountrys_confirm(e) {
				this.req = {
					...this.req,
					...{
						country_name: e.value[0].name || '',
						country_id: e.value[0].id || ''
					}
				};
				this.teacherLists();
				this.teacherCountry_show = false;
			},
			/**
			@method 老师列表
			**/
			async teacherLists() {
				try {
					const res = await teacherLists({
						shop_id: 1,
						page: 1,
						limit: 10
					});
					this.lists = [...res.data.data];
				} catch (err) {
					//TODO handle the exception
					console.log(err);
				}
			},
			/**
			@method 老师分类
			**/
			async teacher_category() {
				try {
					const res = await teacher_category();
					this.columns = [...[res.data]];
				} catch (err) {
					//TODO handle the exception
					console.log(err);
				}
			},
			/**
			@method 老师所属国家
			**/
			async teacher_info(teacher_id, date) {
				try {
					const res = await teacher_info({
						teacher_id: teacher_id,
						date: date
					});
					this.info = {
						...res.data
					};
					console.log(this.info);
				} catch (err) {
					//TODO handle the exception
					console.log(err);
				}
			},
			/**
			@method 老师列表
			**/
			async courseOneAdd(req) {
				try {
					const res = await courseOneAdd(req);
					uni.showToast({
						title: res.code == 1 ? '预约成功' : '预约失败',
						icon: 'none',
						duration: 2000
					});
					this.isDisabled = true
					this.teacher_info(this.req.teacher_id, this.req.date)
				} catch (err) {
					//TODO handle the exception
					console.log(err);
				}
			},
			change(e) {
				console.log(e);
			},
			linkUrl(e) {
				uni.navigateTo({
					url: e
				});
			}
		},
		mounted() {
			this.generateDateArray();
		}
	}
</script>
<style>
	page {
		background-color: #f7f7f7;
	}
</style>
<style scoped lang="scss">
	button::after {
		border: none;
	}

	.NewpopupBody {
		width: 550rpx;
		height: auto;
		padding-top: 50rpx;
		padding-bottom: 50rpx;
		background-color: transparent;

		.title {
			font-family: PingFangSC, PingFang SC;
			font-weight: 600;
			font-size: 36rpx;
			color: #333333;
			display: block;
			text-align: center;
		}

		.content_text {
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			font-size: 28rpx;
			color: #999999;
			display: block;
			text-align: center;
			padding-top: 30rpx;
			padding-bottom: 30rpx;
			letter-spacing: 2rpx;
		}

		.but_flex {
			display: flex;
			justify-content: space-between;
			align-items: center;

			.leftButton {
				width: 40%;
				height: 70rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 600;
				font-size: 32rpx;
				color: #333333;
				display: flex;
				justify-content: center;
				align-items: center;
				border-radius: 50rpx;
				background-color: #efefef;
			}

			.rightButton {
				width: 40%;
				height: 70rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 600;
				font-size: 32rpx;
				color: #fff;
				display: flex;
				justify-content: center;
				align-items: center;
				border-radius: 50rpx;
				// background-color:#267fff;
			}
		}
	}

	.message_Flex {
		width: 92%;
		height: auto;
		margin: 0px auto;
		background-image: url('../../static/Home/gb.png');
		border-radius: 20rpx;
		height: 50px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 10rpx;
	padding: 0 40rpx;

		.view {
			display: flex;
			align-items: center;

			text {
				font-size: 28rpx;
				color: #4d5962;
				margin-left: 30rpx;
			}

			.yuan {
				width: 14rpx;
				height: 14rpx;
				background: #2581FF;
				border-radius: 50%;
				margin-right: 10rpx;
			}
		}
	}

	.borderBottom {
		width: 26rpx;
		height: 8rpx;
		margin: 0px auto;
		margin-top: 10rpx;
		display: block;
		border-radius: 50rpx;
	}

	.hhhh {
		border: 1rpx solid #2383FF;
	}

	.heihei {
		background-color: #2383FF;
	}

	.text_flex {
		display: flex;
		align-items: center;
		margin-top: 20rpx;

		text {
			margin-left: 5rpx;
		}
	}

	.content {
		width: auto;
		height: 20vh;
		padding: 30rpx;
		position: relative;

		.Single_appointment {
			width: 378rpx;
			height: 70rpx;
			margin: 0px auto;
			border-radius: 50rpx;
			background-color: #1f86ff;
			color: #fff;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 28rpx;
			letter-spacing: 2rpx;
			margin-top: 100rpx;
		}

		.statusType {
			display: flex;
			align-items: center;
			margin-top: 30rpx;

			.leftview {
				display: flex;
				align-items: center;
				margin-right: 30rpx;

				view {
					width: 62rpx;
					height: 14rpx;
					background-color: #1f86ff;
					border-radius: 50rpx;
				}

				text {
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					font-size: 24rpx;
					color: #333333;
					margin-left: 10rpx;
				}
			}

			.rightview {
				display: flex;
				align-items: center;

				view {
					width: 62rpx;
					height: 14rpx;
					background-color: #eaeaea;
					border-radius: 50rpx;
				}

				text {
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					font-size: 24rpx;
					color: #333333;
					margin-left: 10rpx;
				}
			}
		}

		.button_flex {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			margin-top: 40rpx;
			//overflow: scroll;
			gap: 40rpx;

			button {
				width: 140rpx;
				height: 50rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				font-size: 26rpx;
				border-radius: 46rpx;
				margin: 0px;
				display: flex;
				justify-content: center;
				align-items: center;
				color: #fff;
			}
		}

		.Box {
			padding-bottom: 30rpx;

			.BoxView {
				width: auto;
				margin: 0px auto;
				// background-color: #fff;
				border-radius: 20rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
			}

			.BoxOne {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.marginBottom {
					margin-bottom: 10rpx;

					.fen {
						font-family: PingFangSC, PingFang SC;
						font-weight: 600;
						font-size: 28rpx;
						color: #FE7000;
						margin-left: 5rpx;
					}
				}

				.BoxTop {
					margin-left: 20rpx;
					display: flex;
					align-items: center;

					text {
						display: block;
						font-size: 24rpx;
					}

					.title {
						font-family: PingFangSC, PingFang SC;
						font-weight: 600;
						font-size: 32rpx;
						color: #333333;
						font-style: normal;
					}

					.Newtitle {
						font-family: PingFangSC, PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: #666666;
					}
				}
			}

			button {
				width: 154rpx;
				height: 60rpx;
				background: linear-gradient(270deg, #3078FF 0%, #009DFE 100%);
				border-radius: 46rpx;
				margin: 0px;
				display: flex;
				justify-content: center;
				align-items: center;
				color: #fff;
				font-size: 26rpx;
			}
		}

		.tips {
			width: auto;
			background: #FFFFFF;
			border-radius: 16rpx;
			display: flex;
			padding: 30rpx;
			margin-top: 20rpx;

			.title {
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				font-size: 24rpx;
				color: #000000;
			}

			.viewFlex {
				width: auto;
				margin-left: 10rpx;

				view {
					display: flex;
					align-items: center;

					text {
						font-family: PingFangSC, PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: #666666;
					}
				}
			}
		}

		.working_hours {
			display: flex;
			align-items: center;

			.view {
				display: flex;
				align-items: center;
				margin-right: 50rpx;
				margin-top: 40rpx;

				/deep/ .u-image {
					margin-right: 10rpx;
				}
			}
		}

		.scrollBody {
			margin-top: 10rpx;

			text {
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				font-size: 28rpx;
				color: #333333;
			}
		}

		.headers {
			width: auto;
			border-radius: 20rpx;
			padding: 20rpx 20rpx 20rpx 20rpx;
			background-color: #fff;
			display: flex;
			// justify-content: space-between;
			align-items: center;
			margin-top: 30rpx;
			box-shadow: 0rpx 6rpx 24rpx 0rpx rgba(218, 218, 218, 0.5);
			overflow: scroll;
			white-space: nowrap;

			.view {
				width: auto;
				white-space: nowrap;

				// border:1px solid red;
				.week {
					font-family: PingFangSC, PingFang SC;
					font-weight: 600;
					font-size: 28rpx;
					color: #333333;
				}

				.sun {
					font-family: PingFangSC, PingFang SC;
					font-weight: 600;
					font-size: 34rpx;
					color: #333333;
					margin-top: 10rpx;
				}

				.sun1 {
					// background: linear-gradient(270deg, #3078FF 0%, #009DFE 100%);
					font-family: PingFangSC, PingFang SC;
					font-weight: 600;
					font-size: 34rpx;
					color: #333333;
					margin-top: 10rpx;
				}

				view {
					width: 50rpx;
					display: inline-block;
					white-space: nowrap;
					display: flex;
					flex-wrap: wrap;
					justify-content: center;
					// border:1px solid red;
					padding-left: 10rpx;
					padding-right: 10rpx;
					flex-direction: column;

					// margin:0px auto;
					text {
						display: inline-block;
						text-align: center;
					}
				}
			}
		}

		.NewFlex {
			justify-content: space-between;

			/deep/ .u-image {
				margin-left: 10rpx;
			}

			.time {
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #4C4C4C;
			}
		}

		.headers_title {
			width: auto;
			margin: 0px auto;
			display: flex;
			align-items: center;
			margin-top: 60rpx;

			.view {
				width: 10rpx;
				height: 34rpx;
				background: #029CFE;
				border-radius: 6rpx;
			}

			.flex {
				display: flex;
				align-items: center;
			}

			text {
				font-family: PingFangSC, PingFang SC;
				font-weight: 600;
				font-size: 36rpx;
				color: #333333;
				margin-left: 10rpx;
				letter-spacing: 2rpx;
			}
		}
	}
</style>